(You seem to have included test.cpp twice in your post, the upper one instead of test.h)