Added tests for frame.registration and frame.base

Also fixed some minor bugs in those modules.