Reformatted code.
Added a test for #13. (failing)