Unit test implementation