test: Some more tests.
test: Refactor.
test: Add security tests.