created test for class and try/catch. Some fixes for corrent this tests