Fixed bug and bad test.