There were some errors in code. Corrected them. Everything goes right with my implementation of last tests.