Fix spec to test coercion
Fix code formatting