Add timed unit test

@mortenvp @jpihl gauge gets its very first unit test! ;) We can also enable valgrind for gauge if we merge this.