Fixed TimeSpan bug (issue #11)

This PR adds TimeSpan tests and fixes issue #11