These tests can be `check-pass` and do not need dynamic libraries. Also remove other unnecessary stuff from them.