(refactor): Added unit tests and moved defaults to a separate file