use sample for tests, move boring cases to test source