tests for amount of methods and fields