call intended method in tests