Add code coverage when testing
Convert specs to coffee
Add test for all automaton states