fixed open
change type to string, fixed subject
removed test
added check if missing
moved require back to module, for unit testing
moved and fixed