Made unit tests run against compiled binary
Test reorganization
Cleaned up scalar encoding tests