Removed excess '$'
Added helper test function that can be used with GHCi.