Fix tests so they all pass

Minor editions to make things a little bit more PEP-8 compliant.

Addition of a test to format_mapping_file_to_js so it checks for
correctly formatted JS objects that can be animated.