Fixed tests to verify correct result.