added some unit tests (incomplete)