fixed methods, a little bit added to test_ratio