class implemented but test fails