added src/test_basicfuncs_bean.cpp, tested basic functions and done several fixes