Made unit test do what it's supposed to, test individual functions.