add a script for running unit tests
scopes belong to ORM, move them back there