improving the test per jgraham's suggestion