add old mode test
move boilderplate to fixture
add memory leak test