add basic tests, fix getBase() reference