unit test, function time

changed unit test and function time to get the time in a list and not a
string.
-need to add more unit tests (at least the ones now work :B)