fixed incorrect method call in test causing failures