Fixing phantom-scalatra tests and making them state independent