Add more implementation details to core::expected<T>

Add expected test to build script