Cleaned up whitespace/commented code in front end tests and removed console.log.

Ref #2619