Added basic testing; fixed a bug when not joined to the domain