Created unit tests for fmt_time() and num_repr()

Created the test directory.
Added unit tests for the fmt_time() and num_repr() functions.
Removed test* from .gitignore to allow tests to be committed as suggested in #166.