added test and method