Test features

Fixed a logic error in a controller. Revised tests.