moved users and applictions controller over to new format
added more tests