adjusting unit tests, fixing bug when compiling prebuild