improves specs to test more cases