Fixed rspec controller tests

Fixed some rspec api controller tests to work with the enginification branch.