refactor spec and add link testing
add application helper spec