added some spec tests to application_helper