added regression test for issue #13 and fixed the bug

catches the ValueError thrown in resources.py if an invalid timestamp is passed as a parameter and raises a BadRequestException, allowing it to propagate up into api.py where it is returned as a BadRequest (400) to the client with a useful status message.