Fix dependency specification

Dependencies that are only used for unit tests should be specified in `devDependencies` so they aren't installed for normal use.