Updated spec tests and helper files to test additional functions of the application