fixes test cases; #1