extend sample_test to test more boundary conditions
better test names