move test from classes to defines where it belongs