Best practices towards TDD approach in frontend automation testing (unit testing, end to end protractor)