User maintenance API

Added contexts to tests
Added test to verify error is thrown when required params are not
provided
Fixed rubocop violation