Better tests with support for REM. Fixes #3

- [ ] Fix toplevelrequire test
- [ ] Bump major version after merge