add unit test with spec2