Adding unit tests and a first draft on selenium tests