fixing build errors in eclipse. adding failing test.