Adding test to ensure invalid formats fail.

Signed-off-by: Ben Corlett <bencorlett@me.com>