Unit testing using codeception

Added first unit tests using codeception like discussed in #941. Now it is up to the community to add more tests, use selenium web driver and make it successful.
Can you fix the indents for the rules above,
using 4 spaces instead of tabs.