fixed invalid method call in test