converting some tests into specs