Tests written for all classes except the UserAccount and UserAccount Controller. Bug fixes in classes to make tests work