Add some tests, fix small bug.

Fix bug where wrong array member was being passed to 24 hour converter.

Todo: Write better tests.