Add selenium tests and prepare to follwo a more TTD approach