started unit testing

sooner or later I'll unit test the whole thing, for now this is the
basic idea

my first time unit testing, don't kill me for the ugliness xD