fix #8: refactor to run tests on release code
fix BC not defined error in tests