improve tests
add tests for debug page