add eigen test

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Merge pull request #389 from brad/eigen_test

Minor modifications by me:
* Commits squashed to one
* Added "--lib" to the `pkg-config` command

Merged-by: Timothy Gu <timothygu99@gmail.com>