removed unused method
added test for completeness