test-declaration prints methods in classes