fixed unsafe method call in tests