add unit tests, run on deploy