fixes failing specs

This pull request fixes the three failing specs
Why this change?