updated test, naming convention for private method added